<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>GZ31学员问答系统</title>
		<meta name="description" content="overview &amp; stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- 基础 样式 -->
		<link href="/gz31/wenda/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="/gz31/wenda/Public/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- 具体的插件页面风格 -->
		<!-- fonts -->
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-fonts.css" />

		<!-- ace styles -->
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace.min.css" />
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="/gz31/wenda/Public/assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- 与此页相关的内联样式 -->
		<!-- ace settings handler -->
		<script src="/gz31/wenda/Public/assets/js/ace-extra.min.js"></script>

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		<script src="/gz31/wenda/Public/assets/js/html5shiv.js"></script>
		<script src="/gz31/wenda/Public/assets/js/respond.min.js"></script>
		<![endif]-->
	</head>

	<body>
	<!-- 头部导航 开始 -->
		<div class="navbar navbar-default" id="navbar">
	<script type="text/javascript">
		try{ace.settings.check('navbar' , 'fixed')}catch(e){}
	</script>

	<div class="navbar-container" id="navbar-container">
		<div class="navbar-header pull-left">
			<a href="#" class="navbar-brand">
				<small>
					<i class="icon-leaf"></i>
					GZ31 问答系统
				</small>
			</a><!-- /.brand -->
		</div><!-- /.navbar-header -->

		<div class="navbar-header pull-right" role="navigation">
			<ul class="nav ace-nav">
				<li class="grey">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-tasks"></i>
						<span class="badge badge-grey">4</span>
					</a>

					<ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header">
							<i class="icon-ok"></i>
							4 Tasks to complete
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Software Update</span>
									<span class="pull-right">65%</span>
								</div>

								<div class="progress progress-mini ">
									<div style="width:65%" class="progress-bar "></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Hardware Upgrade</span>
									<span class="pull-right">35%</span>
								</div>

								<div class="progress progress-mini ">
									<div style="width:35%" class="progress-bar progress-bar-danger"></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Unit Testing</span>
									<span class="pull-right">15%</span>
								</div>

								<div class="progress progress-mini ">
									<div style="width:15%" class="progress-bar progress-bar-warning"></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">Bug Fixes</span>
									<span class="pull-right">90%</span>
								</div>

								<div class="progress progress-mini progress-striped active">
									<div style="width:90%" class="progress-bar progress-bar-success"></div>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								See tasks with details
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>

				<li class="purple">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-bell-alt icon-animated-bell"></i>
						<span class="badge badge-important">8</span>
					</a>

					<ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header">
							<i class="icon-warning-sign"></i>
							8 Notifications
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-xs no-hover btn-pink icon-comment"></i>
										New Comments
									</span>
									<span class="pull-right badge badge-info">+12</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<i class="btn btn-xs btn-primary icon-user"></i>
								Bob just signed up as an editor ...
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-xs no-hover btn-success icon-shopping-cart"></i>
										New Orders
									</span>
									<span class="pull-right badge badge-success">+8</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								<div class="clearfix">
									<span class="pull-left">
										<i class="btn btn-xs no-hover btn-info icon-twitter"></i>
										Followers
									</span>
									<span class="pull-right badge badge-info">+11</span>
								</div>
							</a>
						</li>

						<li>
							<a href="#">
								See all notifications
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>

				<li class="green">
					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
						<i class="icon-envelope icon-animated-vertical"></i>
						<span class="badge badge-success">5</span>
					</a>

					<ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
						<li class="dropdown-header">
							<i class="icon-envelope-alt"></i>
							5 Messages
						</li>

						<li>
							<a href="#">
								<img src="/gz31/wenda/Public/assets/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
								<span class="msg-body">
									<span class="msg-title">
										<span class="blue">Alex:</span>
										Ciao sociis natoque penatibus et auctor ...
									</span>

									<span class="msg-time">
										<i class="icon-time"></i>
										<span>a moment ago</span>
									</span>
								</span>
							</a>
						</li>

						<li>
							<a href="#">
								<img src="/gz31/wenda/Public/assets/avatars/avatar3.png" class="msg-photo" alt="Susan's Avatar" />
								<span class="msg-body">
									<span class="msg-title">
										<span class="blue">Susan:</span>
										Vestibulum id ligula porta felis euismod ...
									</span>

									<span class="msg-time">
										<i class="icon-time"></i>
										<span>20 minutes ago</span>
									</span>
								</span>
							</a>
						</li>

						<li>
							<a href="#">
								<img src="/gz31/wenda/Public/assets/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar" />
								<span class="msg-body">
									<span class="msg-title">
										<span class="blue">Bob:</span>
										Nullam quis risus eget urna mollis ornare ...
									</span>

									<span class="msg-time">
										<i class="icon-time"></i>
										<span>3:15 pm</span>
									</span>
								</span>
							</a>
						</li>

						<li>
							<a href="inbox.html">
								查看所有的信息
								<i class="icon-arrow-right"></i>
							</a>
						</li>
					</ul>
				</li>

				<li class="light-blue">
					<a data-toggle="dropdown" href="#" class="dropdown-toggle">
						<img class="nav-user-photo" src="/gz31/wenda/Public/assets/avatars/user.jpg" alt="Jason's Photo" />
						<span class="user-info">
							<small>欢迎您：</small>
							<?php echo getUserName();?>
						</span>

						<i class="icon-caret-down"></i>
					</a>

					<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
						<li>
							<a href="#">
								<i class="icon-cog"></i>
								设置
							</a>
						</li>

						<li>
							<a href="#">
								<i class="icon-user"></i>
								个人中心
							</a>
						</li>

						<li class="divider"></li>

						<li>
							<a href="<?php echo U('Login/logout');?>">
								<i class="icon-off"></i>
								退出
							</a>
						</li>
					</ul>
				</li>
			</ul><!-- /.ace-nav -->
		</div><!-- /.navbar-header -->
	</div><!-- /.container -->
</div>
	<!-- 头部导航 结束 -->
	


		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner"  style="height:100%;">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>
	
	<!-- 左侧的菜单栏 开始 -->
				<div class="sidebar" id="sidebar">
	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
	</script>

	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
			<button class="btn btn-success">
				<i class="icon-signal"></i>
			</button>

			<button class="btn btn-info">
				<i class="icon-pencil"></i>
			</button>

			<button class="btn btn-warning">
				<i class="icon-group"></i>
			</button>

			<button class="btn btn-danger">
				<i class="icon-cogs"></i>
			</button>
		</div>

		<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
			<span class="btn btn-success"></span>

			<span class="btn btn-info"></span>

			<span class="btn btn-warning"></span>

			<span class="btn btn-danger"></span>
		</div>
	</div><!-- #sidebar-shortcuts -->

	<ul class="nav nav-list">
		<li class="active">
			<a href="index.html">
				<i class="icon-dashboard"></i>
				<span class="menu-text"> 后台首页 </span>
			</a>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 权限控制 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('Admin/index');?>">
						<i class="icon-double-angle-right"></i>
						管理员列表
					</a>
				</li>
				<li>
					<a href="<?php echo U('Admin/add');?>">
						<i class="icon-double-angle-right"></i>
						添加管理员
					</a>
				</li>
				<li>
					<a href="<?php echo U('Rule/index');?>">
						<i class="icon-double-angle-right"></i>
						权限管理
					</a>
				</li>

				<li>
					<a href="<?php echo U('RuleGroup/index');?>">
						<i class="icon-double-angle-right"></i>
						用户组管理
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 系统设置 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						菜单栏管理
					</a>
				</li>
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						添加新菜单
					</a>
				</li>
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						导航栏管理
					</a>
				</li>
				<li>
					<a href="<?php echo U('Nav/index');?>">
						<i class="icon-double-angle-right"></i>
						添加新的导航栏
					</a>
				</li>
				<li>
					<a href="<?php echo U('Base/index');?>">
						<i class="icon-double-angle-right"></i>
						基本设置
					</a>
				</li>
				<li>
					<a href="<?php echo U('Cache/index');?>">
						<i class="icon-double-angle-right"></i>
						缓存管理
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 学生管理 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('User/index');?>">
						<i class="icon-double-angle-right"></i>
						学生列表
					</a>
				</li>
				<li>
					<a href="<?php echo U('User/Add');?>">
						<i class="icon-double-angle-right"></i>
						添加新的学生
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 问答管理 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="<?php echo U('AskCategory/index');?>">
						<i class="icon-double-angle-right"></i>
						问题类别管理
					</a>
				</li>
				<li>
					<a href="<?php echo U('AskCegory/Add');?>">
						<i class="icon-double-angle-right"></i>
						添加类别
					</a>
				</li>
				<li>
					<a href="<?php echo U('Ask/index');?>">
						<i class="icon-double-angle-right"></i>
						问题列表
					</a>
				</li>
				<li>
					<a href="<?php echo U('Ask/Add');?>">
						<i class="icon-double-angle-right"></i>
						添加新问题
					</a>
				</li>
			</ul>
		</li>
		<!-- 后台菜单 -->
		<?php if(is_array($admin_navs)): foreach($admin_navs as $key=>$v): if(empty($v['_data'])): ?><li class="b-nav-li">
                	<a href="<?php echo U($v['mca']);?>" target="right_content">
                		<i class="icon-<?php echo ($v['ico']); ?>"></i> <span class="menu-text"><?php echo ($v['name']); ?></span>
                	</a>
                </li>
            <?php else: ?>
            	<li class="b-has-child">
            		<a href="#" class="dropdown-toggle b-nav-parent">
            			<i class="icon-<?php echo ($v['ico']); ?> icon-test"></i> <span class="menu-text"><?php echo ($v['name']); ?></span><b class="arrow icon-angle-down"></b>
            		</a>
                    <ul class="submenu">
                        <?php if(is_array($v['_data'])): foreach($v['_data'] as $key=>$n): ?><li class="b-nav-li">
                            	<a href="<?php echo U($n['mca']);?>" target="right_content">
                            		<i class="icon-double-angle-right"></i> <?php echo ($n['name']); ?>
                            	</a>
                            </li><?php endforeach; endif; ?>
                    </ul>
                </li><?php endif; endforeach; endif; ?>

	</ul><!-- /.nav-list -->

	<div class="sidebar-collapse" id="sidebar-collapse">
		<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
	</div>

	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
	</script>
</div>
	<!-- 左侧的菜单栏 结束 -->

	
	<!-- 右侧主题内容 开始 -->
				<div class="main-content">
			<!-- 面包屑 开始 -->
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="#">Home</a>
							</li>
							<li class="active">Dashboard</li>
						</ul><!-- .breadcrumb -->

						<div class="nav-search" id="nav-search">
							<form class="form-search">
								<span class="input-icon">
									<input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
									<i class="icon-search nav-search-icon"></i>
								</span>
							</form>
						</div><!-- #nav-search -->
					</div>
			<!-- 面包屑 结束 -->
			
			<!-- /.page-content start-->
					<div class="page-content">
						
<div class="page-header">
	<h1>
		权限管理
		<small>
			<i class="icon-double-angle-right"></i>
			规则表
		</small>
	</h1>
</div><!-- /.page-header -->

<div class="row">

	<div class="col-xs-12">
	<!-- 页面内容 开始-->
		<div class="row">
			<div class="col-sm-6">
				<div id="sample-table-2_length" class="dataTables_length">
					<label>显示 
						<select size="1" name="sample-table-2_length" aria-controls="sample-table-2">
							<option value="10" selected="selected">10</option>
							<option value="25">25</option>
							<option value="50">50</option>
							<option value="100">100</option>
						</select> 
						条数
					</label>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="dataTables_filter" id="sample-table-2_filter">
					<label>搜索: <input type="text" placeholder="名称" aria-controls="sample-table-2"></label>
				</div>
			</div>
		<!-- 搜索 -->
			<div class="col-xs-12">
				<div class="table-responsive">
					<table id="sample-table-1" class="table table-striped table-bordered table-hover">
						<thead>
							<tr>
								<th class="center">
									<label>
										<input type="checkbox" class="ace" />
										<span class="lbl"></span>
									</label>
								</th>
								<th>id</th>
								<th>pid</th>
								<th class="hidden-480">名称</th>

								<th>
									<i class="icon-time bigger-110 hidden-480"></i>
									方法
								</th>
								<th class="hidden-480">状态</th>

								<th>操作</th>
							</tr>
						</thead>
					<!-- 表格的主题内容区域 -->
						<tbody>
						<?php if(is_array($data)): foreach($data as $key=>$v): ?><tr>
								<td class="center">
									<label>
										<input type="checkbox" name="ids[]" value="<?php echo ($v['id']); ?>" class="ace" />
										<span class="lbl"></span>
									</label>
								</td>
								<td>
									<?php echo ($v['id']); ?>
								</td>
								<td>
									<?php echo ($v['pid']); ?>
								</td>
								<td>
									<!-- 名称 -->
									<?php echo ($v['_name']); ?>
								</td>
								<!-- 操作方法 -->
								<td><?php echo ($v['name']); ?></td>
								<td><?php echo ($v['status']); ?>
									<label>
										<input value="<?php echo ($v['status']); ?>" name="switch-field-1" class="ace ace-switch" type="checkbox" onclick="changeStatus(<?php echo ($v['status']); ?>)">
										<span class="lbl"></span>
									</label>
								</td>
								<td>
									<div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
										<!-- <button class="btn btn-xs btn-success">
											<i class="icon-ok bigger-120"></i>
										</button> -->
										
										<!-- 修改 -->
										<button class="btn btn-xs btn-info" id="show-edit" index-id="<?php echo ($v['id']); ?>">
											<i class="icon-edit bigger-120"></i>修改
										</button>

										<!-- 删除 -->
										<button class="btn btn-xs btn-danger">
											<i class="icon-trash bigger-120"></i>删除
										</button>

										<!-- <button class="btn btn-xs btn-warning">
											<i class="icon-flag bigger-120"></i>
										</button> -->
									</div>

									<!-- <div class="visible-xs visible-sm hidden-md hidden-lg">
										<div class="inline position-relative">
											<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">
												<i class="icon-cog icon-only bigger-110"></i>
											</button>

											<ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
												<li>
													<a href="#" class="tooltip-info" data-rel="tooltip" title="View">
														<span class="blue">
															<i class="icon-zoom-in bigger-120"></i>
														</span>
													</a>
												</li>

												<li>
													<a href="#" class="tooltip-success" data-rel="tooltip" title="Edit">
														<span class="green">
															<i class="icon-edit bigger-120"></i>
														</span>
													</a>
												</li>

												<li>
													<a href="#" class="tooltip-error" data-rel="tooltip" title="Delete">
														<span class="red">
															<i class="icon-trash bigger-120"></i>
														</span>
													</a>
												</li>
											</ul>
										</div>
									</div> -->
								</td>
							</tr><?php endforeach; endif; ?>
							
						</tbody>
					</table>
				</div><!-- /.table-responsive -->
			</div><!-- /span -->
			<div>	
				

		</div><!-- /row -->
	<!-- 分页开始 -->
		
		<!-- <div class="row">
			<div class="col-sm-6">
				<div class="dataTables_info" id="sample-table-2_info">
					<a href="#" class="btn btn-sm btn-success">
						<i class="icon-refresh bigger-40"></i>
						更新排序
					</a>
				</div>
			</div>
			<div class="col-sm-6">
				<div class="dataTables_paginate paging_bootstrap">
					<ul class="pagination">
						<li class="prev"><a href="#"><i class="icon-double-angle-left"></i></a></li>
						<li><a href="#">1</a></li>
						<li class="active"><a href="#">2</a></li>
						<li><a href="#">3</a></li>
						<li class="next"><a href="#"><i class="icon-double-angle-right"></i></a></li>
					</ul>
				</div>
			</div>
		</div> -->
	<!-- 页面内容 结束 -->
	</div>
</div>


					</div>
			<!-- /.page-content end-->
				

				</div>
	<!-- 右侧主题内容 结束 -->
	

	<!-- 设置页面样式 开始 -->
				<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
							<label class="lbl" for="ace-settings-navbar"> Fixed Navbar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
							<label class="lbl" for="ace-settings-sidebar"> Fixed Sidebar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
							<label class="lbl" for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
							<label class="lbl" for="ace-settings-rtl"> Right To Left (rtl)</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
							<label class="lbl" for="ace-settings-add-container">
								Inside
								<b>.container</b>
							</label>
						</div>
					</div>
				</div>
	<!-- 设置页面样式 结束 -->
	

			</div><!-- /.main-container-inner -->
	
	<!-- 回到顶部 开始 -->
			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
	<!-- 回到顶部 结束 -->
		</div><!-- /.main-container -->

		<!-- 基本脚本 -->
		<!--[if !IE]> -->
		<script type="text/javascript">
			window.jQuery || document.write("<script src='/gz31/wenda/Public/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>
		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='/gz31/wenda/Public/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/gz31/wenda/Public/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="/gz31/wenda/Public/assets/js/bootstrap.min.js"></script>
		<script src="/gz31/wenda/Public/assets/js/typeahead-bs2.min.js"></script>

		<!-- 特定页面的插件脚本 -->
		<!--[if lte IE 8]>
		  <script src="/gz31/wenda/Public/assets/js/excanvas.min.js"></script>
		<![endif]-->

		<!-- ace 脚本语言 -->
		<script src="/gz31/wenda/Public/assets/js/ace-elements.min.js"></script>
		<script src="/gz31/wenda/Public/assets/js/ace.min.js"></script>

		<!-- common辅助类js -->
		<script type="text/javascript" src="/gz31/wenda/Public/dialog/layer/layer.js"></script>
		<script type="text/javascript" src="/gz31/wenda/Public/dialog/dialog.js"></script>
		<script type="text/javascript" src="/gz31/wenda/Public/common/common.js"></script>


		<!-- 与此页相关的内联脚本 -->
		
	<script>
		var SCOPE = {
			"del_url" : "<?php echo U('Rule/delById');?>",
			"edit_url" : "<?php echo U('Rule/edit');?>",
		};

		function changeStatus(id)
		{
			layer.open({
				content:"Are you sure?",
				icon:3,
				btn:['是','否'],
				yes:function(){
					console.log(id);
				},
			});
		}
	</script>

	
		<script>
			function logout()
			{
				var url = "<?php echo U('Login/logout');?>";
				dialog.loading(0, url);
			}
			$(function(){
			    // 导航点击事件
			    $('.b-nav-li').click(function(event) {
			        $('.active').removeClass('active');
			        var ulObj=$(this).parents('.b-has-child').eq(0);
			        $(this).addClass('active');
			        // alert(2);
			        if(ulObj.length!=0){
			            $(this).parents('.b-has-child').eq(0).addClass('active');
			        }
			    });
			    // 动态调整iframe的高度以适应不同高度的显示器
			    $('.page-content,.main-content').height($(window).height());
			    $('.page-content').css('padding-bottom',50);

			    // 左侧菜单自动适应高度
			    $('#sidebar .nav-list').height($(window).height());
			})

		</script>
	</body>
</html>